package org.jiuling.oss.minio.model;

import java.time.ZonedDateTime;

/**
 * Minio对象模型
 * @author 紫灵
 * @date 2024年01月08日 21时06分47秒
 */
public class MinioObjectModel {

    /** 对象的唯一标识符 */
    private String etag;
    /** 数据名称，即Key */
    private String objectName;
    /** 最后修改时间 */
    private ZonedDateTime lastModified;
    /** 内容大小 */
    private long size;
    /** 存储类别 */
    private String storageClass;
    /** 最新的 */
    private boolean latest;
    /** 文件夹 */
    private boolean directory;

    public String getEtag() {
        return etag;
    }

    public void setEtag(String etag) {
        this.etag = etag;
    }

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    public ZonedDateTime getLastModified() {
        return lastModified;
    }

    public void setLastModified(ZonedDateTime lastModified) {
        this.lastModified = lastModified;
    }

    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }

    public String getStorageClass() {
        return storageClass;
    }

    public void setStorageClass(String storageClass) {
        this.storageClass = storageClass;
    }

    public boolean isLatest() {
        return latest;
    }

    public void setLatest(boolean latest) {
        this.latest = latest;
    }

    public boolean isDirectory() {
        return directory;
    }

    public void setDirectory(boolean directory) {
        this.directory = directory;
    }

}
